<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>会员查询</title>
		<link rel="stylesheet" href="${pageContext.request.contextPath}/backstage/resources/css/reset.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/backstage/resources/css/style.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/backstage/resources/css/invalid.css" type="text/css" media="screen" />
	
		<script type="text/javascript" src="${pageContext.request.contextPath}/backstage/resources/scripts/jquery-1.6.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/backstage/scripts/jquery.provincesCity.js"></script>
		<script type="text/javascript"> 
			$('.check-all').click(
				function(){
					$(this).parent().parent().parent().parent().find("input[type='checkbox']").attr('checked', $(this).is(':checked'));   
				}
			);
		</script>
	</head>
	<body>
		<div id="main-content">
			<div class="content-box">
				<div class="content-box-header">
					<h3>
						会员
					</h3>
					<div style="float: right;padding: 12px 15px 0 0 !important;margin: 0 !important;">
						<span style="display: block;padding: 0 0 10px;font-weight: bold;">会&nbsp;&nbsp;员&nbsp;&nbsp;名&nbsp;&nbsp;:&nbsp;&nbsp;<input class="text-input" type="text" id="memberName" name="memberName" />&nbsp;&nbsp;&nbsp;&nbsp;<a class="button" href="#">搜索</a></span>
					</div>
					<div class="clear"></div>
				</div>
				<div class="content-box-content">
					<div class="tab-content default-tab" style="display: block;">
						<table>
							<thead>
								<tr>
									<th style="width: 15% !important">
										姓名
									</th>
									<th style="width: 15% !important">
										电话
									</th>
									<th style="width: 35% !important">
										地址
									</th>
									<th style="width: 35% !important">
										备注
									</th>
								</tr>
							</thead>
							<tfoot>
								<tr>
									<td colspan="6">
										<div class="bulk-actions align-left">
											<a class="button" href="#add" rel="modal">添加</a>
										</div>
										<div class="pagination">
											<s:url id="firstPage" action="compAction.action">
												<s:param name="p.curPage" value="p.firstPage"/>
												<s:param name="p.count" value="p.count"/>
												<s:param name="p.pageSize" value="p.pageSize"/>
												<s:param name="p.sortOrder" value="p.sortOrder"/>
											</s:url>
											<s:url id="prevPage" action="compAction.action">
												<s:param name="p.curPage" value="p.prevPage"/>
												<s:param name="p.count" value="p.count"/>
												<s:param name="p.pageSize" value="p.pageSize"/>
												<s:param name="p.sortOrder" value="p.sortOrder"/>
											</s:url>
											<s:url id="nextPage" action="compAction.action">
												<s:param name="p.curPage" value="p.nextPage"/>
												<s:param name="p.count" value="p.count"/>
												<s:param name="p.pageSize" value="p.pageSize"/>
												<s:param name="p.sortOrder" value="p.sortOrder"/>
											</s:url>
											<s:url id="lastPage" action="compAction.action">
												<s:param name="p.curPage" value="p.lastPage"/>
												<s:param name="p.count" value="p.count"/>
												<s:param name="p.pageSize" value="p.pageSize"/>
												<s:param name="p.sortOrder" value="p.sortOrder"/>
											</s:url>
											<s:if test="p != null">
												<s:a href="%{firstPage}" title="第一页">&laquo; 第一页</s:a>
											</s:if>
											<s:if test="p.hasPrePage">
												<s:a href="%{prevPage}" title="上一页">&laquo; 上一页</s:a>
											</s:if>
											<s:if test="p.countPage > 0 && p.curPage > 0">
												<s:bean name="org.apache.struts2.util.Counter" id="counter">
													<s:param name="first" value="1" />
													<s:param name="last" value="p.countPage"/>
													<s:iterator status="s">
														<s:if test="#s.index + 1 == p.curPage">
															<a href="<s:url action="compAction.action"><s:param name="p.curPage" value="#s.index + 1"/><s:param name="p.count" value="p.count"/><s:param name="p.pageSize" value="p.pageSize"/><s:param name="p.sortOrder" value="p.sortOrder"/></s:url>" class="number current" title="<s:property value="#s.index + 1"/>"><s:property value="#s.index + 1"/></a>
														</s:if>
														<s:else>
															<a href="<s:url action="compAction.action"><s:param name="p.curPage" value="#s.index + 1"/><s:param name="p.count" value="p.count"/><s:param name="p.pageSize" value="p.pageSize"/><s:param name="p.sortOrder" value="p.sortOrder"/></s:url>" class="number" title="<s:property value="#s.index + 1"/>"><s:property value="#s.index + 1"/></a>
														</s:else>
													</s:iterator>
												</s:bean>
											</s:if>
											<s:if test="p.hasNextPage">
												<s:a href="%{nextPage}" title="下一页">下一页 &raquo;</s:a>
											</s:if>
											<s:if test="p != null">
												<s:a href="%{lastPage}" title="最后一页">最后一页 &raquo;</s:a>
											</s:if>
										</div>
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
							<tbody>
							<s:iterator var="vo" value="list" status="s">
								<tr>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
								</tr>
							</s:iterator>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
